<?php
/**
 * 日志记录 
 */
class Helper_Log
{
    public static function add( $type = 'app' , $content = array() )
    {
        $content = date( "Y-m-d H:i:s" ) . "\t" . var_export( $content , true ) . "\n";
        file_put_contents( ROOT_DIR . "/Log/{$type}.log" , $content , FILE_APPEND );
    }
}
